package ooday05;

public class GetterSetterDemo {
    public static void main(String[] args) {
        Point point=new Point();
        point.setX(5);
        point.setY(10);
        System.out.println(point.getX()+","+point.getY());
        point.setY(50);
        point.setX(100);
        System.out.println(point.getX()+","+point.getY());

    }
}
